<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const arr1 = [1, 2, 3]
        const arr2 = [...arr1]
        
        const arr3 = [7, 8, 9]
        const arr4 = [...arr1, ...arr3]

        const obj1 = {
            h : 1,
            l : 2
        }
        const obj2 = {...obj1}

        const obj3 = {
            m : 3,
            k : 4
        }
        const obj4 = {...obj3, ...obj1}
    </script>
</body>
</html>